<template>
  <div class="box">
    <div class="btnBox">
      <el-button style="margin-right: 15px" @click="returnThree"
        >返回</el-button
      >
    </div>
    <div class="tableBox">
      <el-form :model="form" label-width="120px">
        <el-form-item label="会员等级名称:">
          <el-input v-model="form.name" />
        </el-form-item>
        <el-form-item label="成长值积分:">
          <el-input v-model="form.name" />
        </el-form-item>
        <el-form-item label="设为默认等级:">
          <el-checkbox-group v-model="form.type">
            <el-checkbox label="是" name="type" />
            <el-checkbox label="否" name="type" />
          </el-checkbox-group>
        </el-form-item>
        <el-form-item label="折扣:">
          <el-input v-model="form.name" />
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script lang="ts" setup>
import router from "../../router";
import { reactive, toRefs, ref } from "vue";
const form = reactive({
  name: "",
  region: "",
  date1: "",
  date2: "",
  delivery: false,
  type: [],
  resource: "",
  desc: "",
});
const returnThree: any = function () {
  router.push("/mainView/LevelMembership/levelMembershipView");
};
</script>

<style scoped>
.box {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 15px 0;
}
.btnBox {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.tableBox {
  width: 45%;
}
</style>
